const path = require('path');
const express = require('express');

let app = express();


//构建
const ProjectRouter = express.Router();

//引入控制器
const ProjectController = require(path.join(__dirname,"../controllers/ProjectController"));

//班级列表页面
ProjectRouter.get('/projectList',ProjectController.projectList);

//班级添加页面
ProjectRouter.get('/projectAdd',ProjectController.projectAdd);

//班级添加post处理
ProjectRouter.post('/projectAdd',ProjectController.projectAddForm);

//班级编辑页面
ProjectRouter.get('/projectEdit',ProjectController.projectEdit);

//班级编辑post处理
ProjectRouter.post('/projectEdit',ProjectController.projectEditForm);

//班级删除
ProjectRouter.get('/projectDelete',ProjectController.projectDelete);



module.exports = ProjectRouter;